home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / aim20.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-11-17  |  7KB  |  147 lines

  1. Echo Off
  2. REM ******************************************************
  3. REM * File   : Install.bat
  4. REM * Author : Stephen Williams
  5. REM * Date   : Nov 16, 1994
  6. REM * Revised: 
  7. REM * Purpose: Installation - AIMII
  8. REM ******************************************************
  9. if "%1" == ""    goto help
  10. for %%f in (A:,a:,B:,b:,?,A,a,B,b) do if %1.==%%f. goto Help
  11. for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
  12. for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
  13. for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
  14. for %%f in (X:,x:,Y:,y:,Z:,z:)                         do if %1.==%%f. goto Help
  15.  
  16. REM **************************
  17. REM HARD DISK INSTALLATION
  18. REM **************************
  19. if not exist %1:\nul goto help
  20. if not exist AIM_EXE.EXE goto BadDef
  21. if not exist AIM_DAT.EXE goto BadDef
  22. if not exist README.AIM goto BadDef
  23. if not exist ORDER.DOC goto BadDef
  24. CLS
  25. Echo ┌──────────────────────────────────────────────────────┐ 
  26. Echo │                                                      │
  27. Echo │        ACTION ITEM MANAGER II (tm) INSTALLATION      │
  28. Echo │                                                      │
  29. Echo │     Install Main Program & Help Files on %1:\AIM      │
  30. Echo │                                                      │
  31.  
  32. if exist %1:\AIM\AIM.EXE goto ExistEXE
  33. if exist %1:\AIM\HELP.DBF goto ExistEXE
  34. if exist %1:\AIM\HELP.DBT goto ExistEXE
  35. if exist %1:\AIM\PRDEF.DBF goto ExistEXE
  36. if exist %1:\AIM\ORDER.DOC goto ExistEXE
  37.  
  38. :InsMain
  39. Echo └──────────────────────────────────────────────────────┘
  40. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  41. AIM_EXE %1:\AIM
  42. COPY README.AIM %1:\AIM   
  43. COPY ORDER.DOC %1:\AIM   
  44. CLS
  45. Echo ┌──────────────────────────────────────────────────────┐ 
  46. Echo │                                                      │
  47. Echo │        ACTION ITEM MANAGER II (tm) INSTALLATION      │
  48. Echo │                                                      │
  49. Echo │      Installing Sample Data Files on %1:\AIM          │
  50. Echo │                                                      │
  51.  
  52. if exist %1:\AIM\AI2.DBF goto ExistDat
  53. if exist %1:\AIM\AI2.DBT goto ExistDat
  54. if exist %1:\AIM\GROUPS.DBF goto ExistDat
  55. if exist %1:\AIM\JOURNAL.DBF goto ExistDat
  56. if exist %1:\AIM\JOURNAL.DBT goto ExistDat
  57. if exist %1:\AIM\SCHEDULE.DBF goto ExistDat
  58. if exist %1:\AIM\USERS.DBF goto ExistDat
  59.  
  60. :InsDat
  61. Echo └──────────────────────────────────────────────────────┘
  62. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  63. AIM_DAT %1:\AIM
  64. %1:
  65. CD \AIM
  66. goto End
  67.  
  68. :ExistEXE
  69. Echo │ IMPORTANT: Program already exists on your system.    │
  70. Echo │                                                      │
  71. Echo │ When Prompted:   Overwrite [Y/N]                     │
  72. Echo │                                                      │
  73. Echo │ Press Y if you are upgrading from an earlier version │
  74. Echo │ or want to reinstall the program.                    │
  75. Echo │                                                      │
  76. Echo │ Press N to retain your existing program & help files.│
  77.  
  78. goto InsMain
  79.  
  80. :ExistDat
  81. Echo │ IMPORTANT: Data files already exist on your system.  │
  82. Echo │                                                      │
  83. Echo │ When Prompted:   Overwrite [Y/N]                     │
  84. Echo │                                                      │
  85. Echo │ Press N to retain your existing data files.          │
  86. Echo │                                                      │
  87. Echo │ Press Y to replace your existing data files with the │
  88. Echo │ new data files.                                      │
  89.  
  90. goto InsDat
  91.  
  92. :BadDef
  93. CLS                           
  94. Echo ┌────────────────────────────────────────────────────────────────┐
  95. Echo │      ACTION ITEM MANAGER II (AIM) -  Installation HELP         │
  96. Echo │                                                                │
  97. Echo │ INSTALL must be run from the drive where INSTALL.BAT resides.  │
  98. Echo │                                                                │
  99. Echo │ If you are installing AIM from a floppy disk in drive A,       │
  100. Echo │ type "A:" before running INSTALL.                              │
  101. Echo │                                                                │
  102. Echo │ Example:    A:            (Set Default To Drive A)             │
  103. Echo │             INSTALL C     (Install Program on drive C)         │
  104. Echo │                                                                │
  105. Echo │                   PROGRAM NOT INSTALLED                        │
  106. Echo └────────────────────────────────────────────────────────────────┘
  107. goto bad_end
  108. :Help
  109. Cls
  110. Echo ┌────────────────────────────────────────────────────────────────┐
  111. Echo │      ACTION ITEM MANAGER II (AIM) -  Installation HELP         │
  112. Echo │                                                                │
  113. Echo │                                                                │
  114. Echo │ AIM must be installed on a HARD DISK DRIVE.                    │
  115. Echo │                                                                │
  116. Echo │ The install program decompresses archive files and copies them │
  117. Echo │ to subdirectory \AIM  on the designated hard disk drive.  If   │
  118. Echo │ \AIM does not exist on the designated hard disk, it will be    │
  119. Echo │ created for you.                                               │
  120. Echo │                                                                │
  121. Echo │ Syntax for the command is:  INSTALL d                          │
  122. Echo │                                                                │
  123. Echo │        where "d" is the hard disk drive letter where you want  │
  124. Echo │        the program installed.                                  │
  125. Echo │                                                                │
  126. Echo │ Examples:  INSTALL C   (Note no colon is typed)                │
  127. Echo │            INSTALL D                                           │
  128. Echo │            etc.                                                │
  129. Echo │                                                                │
  130. Echo │                   PROGRAM NOT INSTALLED                        │
  131. Echo └────────────────────────────────────────────────────────────────┘
  132. goto bad_end
  133. REM ************************
  134. REM End Of AIM Installation
  135. REM ************************
  136. :end
  137. CLS
  138. Echo ┌──────────────────────────────────────────────────────┐
  139. Echo │      ACTION ITEM MANAGER II INSTALLED ON %1:\AIM      │
  140. Echo │                                                      │
  141. Echo │                 To run AIM type "AIM"                │
  142. Echo │                                                      │
  143. Echo │  Please review file README.AIM for important infor-  │
  144. Echo │  mation on configuring your system.                  │
  145. Echo └──────────────────────────────────────────────────────┘ 
  146. :bad_end
  147.